mod tests {

    use std::sync::Arc;

    use crate::ml::jieba;
    use jieba_rs::Jieba;
    #[test]
    pub fn test_cut() {
        let jieba = Jieba::new();
        let words = jieba::cut(Arc::new(jieba), "我们中有一个叛徒，叛徒是可耻的");
        for item in words {
            println!("{}", item);
        }
    }
    #[test]
    pub fn test_cut_all() {
        let jieba = Jieba::new();
        let words = jieba::cut_all(Arc::new(jieba), "我们中有一个叛徒");
        for item in words {
            println!("{}", item);
        }
    }

    #[test]
    pub fn test_cut_for_search() {
        let jieba = Jieba::new();
        let words = jieba::cut_for_search(Arc::new(jieba), "我们中有一个叛徒");
        for item in words {
            println!("{}", item);
        }
    }
}
